%h1 Статии

%table
- for article in @articles
  %tr
    %td=h article.title
    %td=h article.contents
    %td= link_to 'Show', article
    %td= link_to 'Edit', edit_article_path(article)
    %td= link_to 'Destroy', article, :confirm => 'Are you sure?', :method => :delete

%br

= link_to 'New article', new_article_path
